<template>
  <view class="search">
    <view class="mysearchipt" @click="handleserach">
      <view class="info">
          <uni-icons type="search" size="20"></uni-icons>
          搜索
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    name:"my-search",
    data() {
      return {
        
      };
    },
    methods:{
      handleserach(){
        uni.navigateTo({
          url:"/subpkg/search/search"
        })
      }
    }
  }
</script>

<style lang="scss">
.search{
  position: sticky;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 999;
  height:  49px;
  background-color: #C00000;
  .mysearchipt{
    margin: 10px 10px;
    height: 30px;
    background-color: #ffffff;
    border-radius: 15px;
    .info{
      text-align: center;
      line-height: 30px;
      
    }
  }
}
</style>